package com.itheima.oop.d1_quickstart;

public class Test {
    public static void main(String[] args) {
        //创建一个对象
        Student s1 = new Student();
        System.out.println("s1.name的默认值（String型）" + s1.name + " "
                + "s1.chinese的默认值（double型）" + s1.chinese);
        s1.name = "波妞";
        s1.chinese = 100;
        s1.math = 99;
        s1.printTotalScore();
        s1.printAverageScore();
        Student s2 = new Student();
        s2.name = "小明";
        s2.chinese = 50 ;
        s2.math = 90;
        s2.printTotalScore();
        s2.printAverageScore();
    }
}
